from flask import Flask

from commons.controller.global_exception_handler_controller import GlobalExceptionHandlerController
from report_service.report.controller import report_blueprint


def create_app():
    app = Flask(__name__)

    GlobalExceptionHandlerController.register_global_exception_handlers(app)
    app.register_blueprint(report_blueprint, url_prefix='/report')

    return app
